package com.fitness.front.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.front.modal.course.dto.CourseReserveDto;
import com.fitness.front.modal.course.entity.CourseReserve;
import com.fitness.front.modal.course.vo.CourseReserveVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface CourseReserveConvertor {
    Page<CourseReserveVO> entity2Vo(Page<CourseReserve> coachBoPage);

    CourseReserve dto2Entity(CourseReserveDto reserveDto);

    CourseReserveVO entity2Vo(CourseReserve newCourseReserve);
}
